Filter hook 'expiration_of_site_transient_{$transient}'
in WP Core File wp-includes/option.php at line 2591
Description
Filters the expiration for a site transient before its value is set. The dynamic portion of the hook name, `$transient`, refers to the transient name.
Occurrences
Filename |
Line Number |
wp-includes/option.php |
2591 |
Parameters
Type |
Name |
Description |
int |
$expiration |
Time until expiration in seconds. Use 0 for no expiration. |
mixed |
$value |
New value of site transient. |
string |
$transient |
Transient name. |
PHP Doc
/**
* Filters the expiration for a site transient before its value is set.
*
* The dynamic portion of the hook name, `$transient`, refers to the transient name.
*
* @since 4.4.0
*
* @param int $expiration Time until expiration in seconds. Use 0 for no expiration.
* @param mixed $value New value of site transient.
* @param string $transient Transient name.
*/